import React from 'react';
import cx from 'classnames';
import styles from './common.less';

interface ImgProps extends React.ImgHTMLAttributes<HTMLImageElement> {}

const Image = React.forwardRef(
  ({ className, src, ...props }: ImgProps, ref: any) => {
    return <img className={cx({}, className)} src={src} {...props} />;
  },
);

Image.defaultProps = {};
export { Image };
